home *** CD-ROM | disk | FTP | other *** search
/ .net (Turkey) 1998 March / .net Internet Dergisi - CD 5.iso / mac / CON_BM / 00285_Script_285 < prev    next >
Text File  |  1997-11-07  |  5KB  |  142 lines

  1. --movie resizing
  2.  
  3. on ResizeMovie 
  4.   global gCurrentMoviePlaying, gCurrentMovieOrigWidth, gCurrentMovieOrigHeight,  gCurrentMovieOrigPosX, gCurrentMovieOrigPosY, gOrigMovieSpeed
  5.   repeat with i = 1 to 6
  6.     puppetsprite (39 +i), true
  7.     set the visible of sprite (39 +i) to false
  8.     updatestage
  9.   end repeat
  10.   
  11.   
  12.   puppetsprite 30, true
  13.   puppetsprite 31, true
  14.   puppetsprite 32, true
  15.   puppetsprite 48, true
  16.   
  17.   set the visible of sprite 30 to false
  18.   set the visible of sprite 31 to false
  19.   set the visible of sprite 32 to false
  20.   set the visible of sprite 48 to false
  21.   
  22.   if gCurrentMovieOrigWidth = 160 then 
  23.     if the width of sprite  48 = 160 then
  24.       set the height of sprite 48 to 240
  25.       set the width of sprite 48 to 320
  26.       put gCurrentMovieOrigHeight into Z
  27.       set the loch of sprite 48 to (gCurrentMovieOrigPosX - ((320 - gCurrentMovieOrigWidth)/2))
  28.       set the locv of sprite 48 to (gCurrentMovieOrigPosY + ((240 - gCurrentMovieOrigHeight)/2))
  29.       updatestage
  30.       set the visible of sprite 48 to true  
  31.       exit 
  32.     end if 
  33.     
  34.     
  35.     
  36.     if the width of sprite  48 = 320 then
  37.       --      hello
  38.       set the height of sprite 48 to 300
  39.       set the width of sprite 48 to 400
  40.       set the loch of sprite 48 to (gCurrentMovieOrigPosX - ((400 - gCurrentMovieOrigWidth)/2))
  41.       set the locv of sprite 48 to (gCurrentMovieOrigPosY + ((300 - gCurrentMovieOrigHeight)/2))
  42.       updatestage
  43.       set the visible of sprite 48 to true  
  44.       exit 
  45.     end if 
  46.     if the width of sprite  48 = 400 then
  47.       set the height of sprite 48 to 120
  48.       set the width of sprite 48 to 160
  49.       set the loch of sprite 48 to gCurrentMovieOrigPosX
  50.       set the locv of sprite 48 to gCurrentMovieOrigPosY
  51.       updatestage
  52.       set the visible of sprite 48 to true  
  53.       exit 
  54.     end if 
  55.   end if
  56.   
  57.   if gCurrentMovieOrigWidth = 320 then 
  58.     if the width of sprite  48 = 320 then
  59.       
  60.       set the locH of sprite 30 to 153
  61.       set the locV of sprite 30 to 0
  62.       set the membernum of sprite 30 to the number of member "bigmovie" of castLib "shared"
  63.       
  64.       repeat with i = 1 to 6
  65.         puppetsprite (39 + i), true
  66.         set origloch = the loch of sprite (39 + i)
  67.         set origlocv = the locv of sprite (39 + i)
  68.         set the loch of sprite (39 + i) = (origloch - 1)
  69.         set the locv of sprite (39 + i) = (origlocv + 67)
  70.         updatestage  
  71.       end repeat
  72.       --      move volume bar + knob
  73.       set origloch = the loch of sprite 31
  74.       set origlocv = the locv of sprite 31
  75.       set the loch of sprite 31 = (origloch - 82)
  76.       set the locv of sprite 31 = (origlocv + 60)
  77.       set origloch = the loch of sprite 32
  78.       set origlocv = the locv of sprite 32
  79.       set the loch of sprite 32 = (origloch - 82)
  80.       set the locv of sprite 32 = (origlocv + 60)
  81.       
  82.       
  83.       
  84.       
  85.       set the height of sprite 48 to 300
  86.       set the width of sprite 48 to 400
  87.       set the loch of sprite 48 to (gCurrentMovieOrigPosX - ((400 - gCurrentMovieOrigWidth)/2))
  88.       set the locv of sprite 48 to (gCurrentMovieOrigPosY + ((300 - gCurrentMovieOrigHeight)/2))
  89.       updatestage
  90.       set the visible of sprite 30 to true
  91.       set the visible of sprite 48 to true  
  92.       repeat with i = 1 to 6
  93.         set the visible of sprite (39 +i) to true
  94.       end repeat
  95.       set the visible of sprite 31 to true
  96.       set the visible of sprite 32 to true
  97.       exit 
  98.     end if 
  99.     
  100.     if the width of sprite  48 = 400 then
  101.       set the locH of sprite 30 to 236
  102.       set the locV of sprite 30 to -2
  103.       set the membernum of sprite 30 to the number of member "smallmovie" of castLib "shared"
  104.       repeat with i = 1 to 6
  105.         
  106.         set origloch = the loch of sprite (39 + i)
  107.         set origlocv = the locv of sprite (39 + i)
  108.         set the loch of sprite (39 + i) = (origloch + 1)
  109.         set the locv of sprite (39 + i) = (origlocv - 67)
  110.         updatestage  
  111.       end repeat
  112.       --      move volume bar + knob back
  113.       set origloch = the loch of sprite 31
  114.       set origlocv = the locv of sprite 31
  115.       set the loch of sprite 31 = (origloch + 82)
  116.       set the locv of sprite 31 = (origlocv - 60)
  117.       set origloch = the loch of sprite 32
  118.       set origlocv = the locv of sprite 32
  119.       set the loch of sprite 32 = (origloch + 82)
  120.       set the locv of sprite 32 = (origlocv - 60)
  121.       
  122.       
  123.       set the height of sprite 48 to 240
  124.       set the width of sprite 48 to 320
  125.       set the loch of sprite 48 to gCurrentMovieOrigPosX
  126.       set the locv of sprite 48 to gCurrentMovieOrigPosY
  127.       updatestage
  128.       set the visible of sprite 30 to true
  129.       set the visible of sprite 48 to true  
  130.       repeat with i = 1 to 6
  131.         set the visible of sprite (39 +i) to true
  132.       end repeat
  133.       set the visible of sprite 31 to true
  134.       set the visible of sprite 32 to true
  135.       exit 
  136.     end if 
  137.   end if
  138.   
  139.   
  140.   
  141. end ResizeMovie
  142.